package org.lagstains
{
	import org.flixel.FlxState;
	import org.flixel.*;
	import org.flixel.FlxText;

	public class GameState extends FlxState
	{
		[Embed(source="../../data/images/TEMP_track.png")] private var ImgTrack:Class;
		
		private var backgroundSprite:FlxSprite;
		
		public var player:Player;
		
		public function GameState()
		{
			super();

			initBackground();
			
			player = new Player(100,100,backgroundSprite.height);
			this.add(player);

		}
		
		private function initBackground():void
		{
			backgroundSprite = new FlxSprite(0, 0, ImgTrack);
			//backgroundSprite.scale.y = 0.75;
			//backgroundSprite.height *= 0.75;
			//position it at the bottom
			backgroundSprite.y += FlxG.height - backgroundSprite.height;
			
			//backgroundSprite.scale.x = 2.0;
			add(backgroundSprite);	
		}
	}
}